# Contributor: Ted Trask <ttrask01@yahoo.com>
# Maintainer: Ted Trask <ttrask01@yahoo.com>
pkgname=acf-weblog
pkgver=0.11.1
pkgrel=1
pkgdesc="ACF for web proxy (squid and dansguardian) logfiles"
url="https://git.alpinelinux.org/cgit/acf/acf-weblog"
arch="noarch"
license="GPL-2.0"
depends="acf-core lua-sql-postgres wget postgresql-client lua-subprocess"
makedepends=""
install="$pkgname.post-upgrade"
subpackages=""
source="https://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.xz
	acf-weblog-update-schema"

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make DESTDIR="$pkgdir" install || return 1
	install -Dm755 "$srcdir"/acf-weblog-update-schema \
		"$pkgdir"/usr/sbin/acf-weblog-update-schema
}

sha512sums="396e0e3cbbd01f2c12f9e3b00ee1b8c0b9ec379af9c09b19ebf4b4571a265c040e9266dc3fe9012510136214a5ad49198020cdf861045ce19512d76afbc22dd1  acf-weblog-0.11.1.tar.xz
98474adf2b60b30dbe060753db9b8c8d70696e063cfae810f7aab59cba229e45e15abe368609bd9ab3480c594fd6e9545c5c128fcdc81908df4463f86cb475e3  acf-weblog-update-schema"
